#include <QVector>
#include <QString>
#include <QFile>
#include <QFileInfo>
#include <QDomDocument>
#include <QDateTime>

#include "Trial.h"
#include "ScreenTemplate.h"

#ifndef EXPERIMENT_H
#define EXPERIMENT_H

class Experiment
{
private:
    int currentTrialIndex;

public:
    Experiment();
    Experiment(QByteArray qByteArray);
    ~Experiment();

    //returns a pointer to the current trial
    Trial * CurrentTrial();
    //returns a pointer to the next trial
    Trial * GoToNextTrial();
    //returns a pointer to the trial at the specified index
    Trial * GoToTrial(int index);

    QVector<Trial> Trials;
    QString FileName;
    QDateTime LastSaved;
    long DatabaseId;
    //ScreenTemplate ScreenTemplate;
    QVector<QString> Counters;
};

#endif // EXPERIMENT_H
